package cn.hxth.cloud.service.service;

import cn.hxth.cloud.api.domain.ProductInputOrder;
import cn.hxth.cloud.api.domain.ProductOutputOrder;
import cn.hxth.cloud.api.domain.SteelsOutputOrder;
import cn.hxth.cloud.service.commons.config.FeignClientConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="WMS-PROVIDER",configuration=FeignClientConfig.class)
@RequestMapping("/wms/")
public interface WmsService {
    @PostMapping("insertProductOutputOrder")
    public Boolean insertProductOutputOrder(@RequestBody  ProductOutputOrder productOutputOrder) ;
    @PostMapping("insertSteelsInputOrder")
    public Boolean insertSteelsInputOrder(@RequestParam("mid") String mid) ;
    @PostMapping("insertSteelsOutputOrder")
    public Boolean insertSteelsOutputOrder(@RequestBody SteelsOutputOrder SteelsOutputOrder);
    @PostMapping("insertProductInputOrder")
    public  Boolean insertProductInputOrder(@RequestBody ProductInputOrder productInputOrder);
}
